import request from '../utils/request'

export const jobCfyPub = (data)=>{  //分类发布
  return request.post('/1.1/classes/Cfy',data)
}

export const jobCfyList = () => {  //分类列表
  return request.get('/1.1/classes/Cfy')
}

export const jobCfyById = (id) => {  //查询某个分类
  return request.get(`/1.1/classes/Cfy?where={"objectId":"${id}"}`)
}

export const jobCfyEdit = (id,newData) => {  //分类编辑
  return request.put(`/1.1/classes/Cfy/${id}`, newData)
}